package qnit.test.hibiernate.util;

import java.io.IOException;
import java.util.Properties;

public class PropUtil {
	public static Properties props = new Properties();
	static {
			try {
				props.load(PropUtil.class.getClassLoader().getResourceAsStream("oschina.properties"));
			} catch (IOException e) {
				e.printStackTrace();
			}
    }
	
	public static String getProperty(String name) {
		return props.getProperty(name);
	}
	
	public static Integer getProperty1(String name) {
		return Integer.valueOf(props.getProperty(name));
	}
	
	public static void main(String[] args) {
		System.out.println(PropUtil.getProperty("encrypt_type"));
		
		
		
	}
}
